const Layout = () => import("../views/Layout");
const Dashboard = () => import("../views/Home/Dashboard");
const Banner = () => import("../views/Home/Banner");
const BannerAdd = () => import("../views/Home/Banner/add");
const homeRoute = {
  path: "/home",
  component: Layout,
  redirect: "/home/dashboard",
  meta: {
    title: "home", // zh.json -> route的属性名
    icon: "HomeOutlined",
  },
  children: [
    {
      path: "dashboard",
      component: Dashboard,
      name: "dashboard",
      meta: {
        title: "dashboard",
        isAffix: true,
      },
      // hidden: true,
    },
    {
      path: "banner",
      component: Banner,
      name: "banner",
      meta: {
        title: "banner",
      },
    },
    {
      path: "banner/add",
      component: BannerAdd,
      name: "bannerAdd",
      hidden: true,
      meta: {
        title: "bannerAdd",
      },
    },
  ],
};
export default homeRoute;
